
i = 0
while i < 10:
    if i == 3:
        # 跳出循环,并且不执行后续代码
        break
    print(i)
    i += 1
